package entity

import org.joda.time.DateTime

class Client implements Entity {
    Integer id
    Integer type // Person or enterprise
    String name
    String abbreviation
    String idNum
    String idType //CC, CE, PASS, NIT, other
    DateTime registrationDate
    String contact
    String contactPosition
    String city
    String billingDates
    String billingDeliveryMethod
    String billingComments
    List phoneNumbers = new ArrayList();
    List addresses = new ArrayList();
    List emails = new ArrayList();
    
    String toString() {
        name
    }
    
    public static final String CC = "CC"
    public static final String CE = "CE"
    public static final String PASSPORT = "PASS"
    public static final String NIT = "NIT"
    
    public static final Integer PERSON = 0
    public static final Integer ENTERPRISE = 1
}
